import request from '@/utils/service'

// 登录获取token
export function login(data: any) {
    return request({
        url: '/login',
        method: 'POST',
        data
    })
}

// 获取用户详细信息
export function getUserInfo() {
    return request({
        url: '/getUserInfo',
        method: 'GET'
    })
}

// 注销登录
export function logout() {
    return request({
        url: '/logout',
        method: 'POST'
    })
}

// 获取短信验证码
export function getSms() {
    return request({
        url: '/getSms',
        method: 'get'
    })
}

